package vn.hocweb.entity;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

public class UngDung extends BaiHoc_Abstract{
	private BaiHoc baiHoc;
	
	private List<MaNguon> danhSach_MaNguon;
	private UngDung ungDung_LienQuan;
	
	public UngDung(long maUngDung, String nguoiCapNhat, String ten, String moTa,
			String ghiChu, int soLanXem, Date ngayCapNhat, long maBaiHoc, long maUngDung_LienQuan,
			int thuTu, boolean noiBat, boolean hienThi) {
		super(maUngDung, nguoiCapNhat, ten, moTa, ghiChu, soLanXem, ngayCapNhat, thuTu, noiBat, hienThi);
		this.baiHoc = new BaiHoc(maBaiHoc);
		this.danhSach_MaNguon = new ArrayList<MaNguon>();
		this.ungDung_LienQuan = new UngDung(maUngDung_LienQuan);
	}
	
	public UngDung(long maBaiHoc){
		super(maBaiHoc);
	}

	public BaiHoc getBaiHoc() {
		return baiHoc;
	}

	public void setBaiHoc(BaiHoc baiHoc) {
		this.baiHoc = baiHoc;
	}

	public List<MaNguon> getDanhSach_MaNguon() {
		return danhSach_MaNguon;
	}

	public void setDanhSach_MaNguon(List<MaNguon> danhSach_MaNguon) {
		this.danhSach_MaNguon = danhSach_MaNguon;
	}

	public UngDung getUngDung_LienQuan() {
		return ungDung_LienQuan;
	}

	public void setUngDung_LienQuan(UngDung ungDung_LienQuan) {
		this.ungDung_LienQuan = ungDung_LienQuan;
	}

}
